package com.gome.ss.core.schedule;

import org.quartz.Trigger;

public class TriggerConfig {
	public static final String CRON_TYPE = "cron";
	public static final String CYCLE_TYPE = "cycle";
	public static final String NORMAL_TYPE = "normal";
	
	private String triggerName;
	private String trggerGroup;
	protected String triggerType;
	
	public TriggerConfig() {
		
	}

	public String getTriggerName() {
		return triggerName;
	}

	public void setTriggerName(String triggerName) {
		this.triggerName = triggerName;
	}

	public String getTrggerGroup() {
		return trggerGroup;
	}

	public void setTrggerGroup(String trggerGroup) {
		this.trggerGroup = trggerGroup;
	}
	
	public Trigger getTrigger() throws Exception {
		return null;
	}

	public String getTriggerType() {
		return triggerType;
	}
	
	public boolean isCronType() {
		return this.triggerType.equals(TriggerConfig.CRON_TYPE);
	}
	
	public boolean isCycleType() {
		return this.triggerType.equals(TriggerConfig.CYCLE_TYPE);
	}
	
	public boolean isNormalType() {
		return this.triggerType.equals(TriggerConfig.NORMAL_TYPE);
	}
}
